function Multiscreen() {
};


Multiscreen.Init = function(){
    $("#newwindow1").click(function () {
        var url = window.location.href;
        url = url + "&isVoice=2";
        if ([null,'',undefined].indexOf(ScsMapConstant.isBs)!==-1) {
            window.Win_New(url);
        } else {
            if(parseInt(ScsMapConstant.isBs)===1 ){
                window.open(url);
            }
        }
        $(".menu_left_voice").css("display","none");
        switchFun('map');
        ScsMapConstant.voiceseparate = 1;
        $('.menuleft_Menu').hide();
        Multiscreen.closevoicepannel();
        $("#shortcut_list_voice[data-menu='ip']").hide();
        $("#shortcut_list_voice[data-menu='ipvid']").css("display","none");
    });

    $("#newwindow2").click(function () {
        var url = window.location.href;
        url = url + "&isVideo=3";
        if ([null,'',undefined].indexOf(ScsMapConstant.isBs)!==-1) {
            window.Win_New(url);
        } else {
            if(parseInt(ScsMapConstant.isBs)===1 ){
                window.open(url);
            }
        }
        $(".menu_left_video").css("display","none");
        switchFun('map');
        ScsMapConstant.videoseparate = 1;
        $('.menuleft_Menu').hide();
        Multiscreen.closevideopull();
    });

};

Multiscreen.closevoicepannel = function() {    //·ÖÆÁ¹Ø±Õ¶ÔÓ¦µÄÓïÒôÍ¨µÀ
    for (var i = 0; i < DasFrameObj.allFramesArray.length; i++) {
        if (DasFrameObj.allFramesArray[i].channelId > 0) {
            var objId = DasFrameObj.allFramesArray[i].objId + "";
            DasPageEvent.clearDasFrame_Confirm(objId, null);
        }
    }
};

Multiscreen.closevideopull = function() {     //·ÖÆÁ¹Ø±Õ¶ÔÓ¦µÄÊÓÆµÀ­È¡
    var curVideoWindowInfo;
    for(var index=0; index<VideoWindowInfo.totalWindowNum; index++){
        curVideoWindowInfo = VideoWindowInfo.allVideoWindowInfoArray[index];
        if(curVideoWindowInfo &&  curVideoWindowInfo.status  == MediaConstants.STATUS_PLAY){
            var winIndex = index + "";
            ScsVideoMediaView.proccessCloseVideo(winIndex);
        }
    }
};

// Multiscreen.closeIpvideo = function() {    //·ÖÆÁ¹Ø±ÕIPÊÓÆµ£¬ÔÝÊ±²»ÓÃ
//     if (VOICE.vvObj.channelId != -1) {
//         var sipObj = new Object();
//         sipObj.CallID = VOICE.vvObj.channelId;
//         DispatchCtrlLib.VoipHangupCall(sipObj.CallID);
//         VideoLibIPArray[0].StopDisplay();
//         VideoLibIPArray[1].StopDisplay();
//         VOICE.vvObj.channelId = -1;
//         $(".video-big ").hide();
//         $('.btn-micx').removeClass('btn-micx').addClass('btn-mic');
//     }
// };